#ifndef AUTH_H
#define AUTH_H

#include <QObject>
#include <QNetworkCookieJar>
#include <QHttp>
#include <QNetworkInterface>

class Auth : public QObject
{
    Q_OBJECT
public:
    Auth(QObject* parent = 0);
    ~Auth();

    QString transformKey(QString aKey);
    void uoRequest(QString aNick, QString aNickAuth, QString aPassword);

private:
    QString version(QString aData);
    void requestComplete(QString aNickAuth, QString aData);

public:
    QString iUbi, iCid, iSid, iUid;
    QString iUOKey, iUONick;

signals:
    void send(QString aSend);
    void logMessage(QString aMessage);

};

#endif
